#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
#include<QString>
#include<QHostInfo>
#include<QTcpSocket>
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QString GetLolalHostIP();


private slots:
    void on_pushButton_Connect_clicked();

    void on_pushButton_Disconnect_clicked();

    void on_pushButton_Send_clicked();

private:
    Ui::MainWindow *ui;
    QTcpSocket *socket;
    QString Ip;
};
#endif // MAINWINDOW_H
